// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   Queue.java

package cn.sendsms;

import java.util.LinkedList;

class Queue
{

	private LinkedList q;

	public Queue()
	{
		q = new LinkedList();
	}

	synchronized void add(Object o)
	{
		q.addLast(o);
	}

	synchronized Object get()
	{
		if (q.isEmpty())
			return null;
		else
			return q.removeFirst();
	}

	synchronized int size()
	{
		return q.size();
	}
}
